<template>
  <div id="header">
    <div class="bg"></div>
    <div class="container">
      <div class="logo"></div>
      <div class="title">
        <span>信息系毕业设计选题</span>
      </div>
      <!-- <div class="but">
        <router-link to="/login" tag="div">用户登录</router-link>
        <router-link to="/reg" tag="div">用户注册</router-link>
      </div> -->
    </div>
    <transition>
      <router-view></router-view>
    </transition>
  </div>
</template>

<script>
export default {
  data() {
    return {};
  }
};
</script>
<style>
.title {
  text-align: center;
  font-size: 20px;
  margin: 20px 10px 10px 20px;
}
.bg {
  background: url("../assets/bg3.jpg") no-repeat center;
  top: 0;
  left: 0;
  background-size: 100% 100%;
  height: 100%;
  width: 100%;
  position: fixed;
  z-index: -1;
}
.logo {
  background: url("../assets/cb8065380cd7912386d7f690af345982b2b7801a.jpg")
    no-repeat center;
  background-size: 100% 100%;
  height: 140px;
  width: 140px;
  margin: 0 auto;
}
body,
html {
  overflow: hidden;
}
.container {
  margin: 0 auto;
}
.but {
  display: flex;
}
.but div {
  display: inline-block;
  width: 100%;
  height: 40px;
  line-height: 40px;
  text-align: center;
  border: 1px solid #4cd137;
  border-radius: 30px;
  margin-left: 10px;
  font-size: 18px;
  margin-top: 20px;
}
</style>
